package
{
	import flash.display.MovieClip;
	import flash.events.MouseEvent;
	
	public class GameRule extends MovieClip
	{
		public var mc_rules:MovieClip;
		
		public function GameRule()
		{
			super();
			this.addEventListener(MouseEvent.ROLL_OVER,onMouseMove);
			this.addEventListener(MouseEvent.MOUSE_OUT,onMouseOut);
		}
		
		public function onMouseMove(event:MouseEvent):void
		{
			if(this.currentFrame != 9){
				this.mc_rules.gotoAndPlay(9);
			}
		}
		
		public function onMouseOut(event:MouseEvent):void
		{
				this.mc_rules.gotoAndPlay(14);
		}
	}
}